<legend class='hyc-legend'>
    <i class="fa fa-list"></i>&nbsp;
    <span>时效统计列表</span>
</legend>
<div class="panel panel-default">
    <div class="panel-heading">时效统计</div>
    <div class="panel-body">
        <div class="row">
            <div class="col-md-1 text-right top7">起始时间</div>
            <div class="col-md-2">
                <div class="form-group">
                    <input type="text" class="form-control hyc-color" ng-model="searchObj.startDate" placeholder="开始时间" bs-datepicker date-format="yyyy-MM-dd">
                </div>
            </div>
            <div class="col-md-1 text-right top7">结束时间</div>
            <div class="col-md-2">
                <div class="form-group">
                    <input type="text" class="form-control hyc-color" ng-model="searchObj.endDate" placeholder="结束时间" bs-datepicker date-format="yyyy-MM-dd">
                </div>
            </div>
            <div class="col-md-1 text-right top7">运单状态</div>
            <div class="col-md-2">
                <div class="form-group">
                    <button type="button" class="btn btn-default admin-select select hyc-width" ng-model="searchObj.status" bs-options="item.value as item.label for item in statusList" bs-select placeholder="---请选择---">
                    </button>
                </div>
            </div>
            <div class="col-md-3">
                <div class="form-group text-right">
                    <div class="btn btn-default btn-sm btn-warning" ng-click="loadData()">查询</div>&nbsp;&nbsp;&nbsp;
                    <div class="btn btn-default btn-sm" ng-click="clearQuery()">重置</div>
                </div>
            </div>
        </div>
        <div class="hyc-overflow-y">
            <table class="table table-bordered table-hover" style="width: 4000px; margin-bottom: 0;">
                <tr>
                    <th class="text-center">序号</th>
                    <th class="text-center">下单时间</th>
                    <th class="text-center">客户名称</th>
                    <th class="text-center">客户订单号</th>
                    <th class="text-center">底盘号</th>
                    <th class="text-center">车型</th>
                    <th class="text-center">目的省份</th>
                    <th class="text-center">目的地</th>
                    <th class="text-center">经销商</th>
                    <th class="text-center">收货地</th>
                    <th class="text-center">联系电话</th>
                    <th class="text-center">承运车队</th>
                    <th class="text-center">运力编码</th>
                    <th class="text-center">司机姓名</th>
                    <th class="text-center">主驾电话</th>
                    <th class="text-center">接单时间</th>
                    <th class="text-center">发运时间</th>
                    <th class="text-center">临牌时间</th>
                    <th class="text-center">回单时间</th>
                    <th class="text-center">SAP时间</th>
                    <th class="text-center">订单状态</th>
                    <th class="text-center">标准交付时间</th>
                    <th class="text-center">交付时间</th>
                    <th class="text-center">发运超期</th>
                    <th class="text-center">发运超期天数</th>
                    <th class="text-center">在途超期</th>
                    <th class="text-center">在途超期天数</th>
                    <th class="text-center">发运超期原因</th>
                    <th class="text-center">在途超期原因</th>
                    <th class="text-center">最新位置</th>
                    <th class="text-center">公里数</th>
                </tr>
                <tr ng-repeat="item in list track by $index">
                    <td>
                        {{$index + 1}}
                    </td>
                    <td class="text-center">
                        {{item.create_time}}
                    </td>
                    <td class="text-center">
                        --
                    </td>
                    <td class="text-center">
                        {{item.order_code}}
                    </td>
                    <td class="text-center">
                        {{item.vcvin}}
                    </td>
                    <td>
                        {{item.vcstylename}}
                    </td>
                    <td class="text-center">
                        {{item.dest_province}}
                    </td>
                    <td class="text-center">
                        {{item.dest_city}}
                    </td>
                    <td>
                        {{item.vcdealername}}
                    </td>
                    <td>
                        {{item.vcaddress}}
                    </td>
                    <td class="text-center">
                        {{item.vcmobile}}
                    </td>
                    <td class="text-center">
                        --
                    </td>
                    <td class="text-center">
                        --
                    </td>
                    <td class="text-center">
                        {{item.real_name}}
                    </td>
                    <td class="text-center">
                        {{item.phone}}
                    </td>
                    <td class="text-center">
                        {{item.pd_time}}
                    </td>
                    <td class="text-center">
                        {{item.outset_time || '--'}}
                    </td>
                    <td class="text-center">
                        {{item.outset_time || '--'}}
                    </td>
                    <td class="text-center">
                        {{item.recovery_time}}
                    </td>
                    <td class="text-center">
                        --
                    </td>
                    <td class="text-center">
                        {{item.waybill_status_text}}
                    </td>
                    <td class="text-center">
                        {{item.bzjf_time}}
                    </td>
                    <td class="text-center">
                        {{item.hd_time}}
                    </td>
                    <td class="text-center">
                        {{item.is_fycq}}
                    </td>
                    <td class="text-right">
                        {{item.cq_time > 0 ? item.cq_time : 0}}
                    </td>
                    <td class="text-center">
                        {{item.is_ztcq}}
                    </td>
                    <td class="text-right">
                        {{item.ztcq_time > 0 ? item.ztcq_time : 0}}
                    </td>
                    <td class="text-center">
                        --
                    </td>
                    <td class="text-center">
                        --
                    </td>
                    <td>
                        {{item.address}}
                    </td>
                    <td class="text-center">
                        {{item.distance}}
                    </td>
                </tr>
            </table>
            <div style="padding: 10px;" ng-if="list.length <= 0" class="text-center">暂无时效数据</div>
        </div>
    </div>
</div>